		function validate(){
				//check if the data is correct
				var obj=document.getElementById("community_name");
				if(validateCommunity(obj.value)==true||(validateSchool(obj.value)==true) ){
					
				}else{
					obj.style.backgroundColor="red";
					return false;
				}
			}
			
			
			function validateCommunity(str){
				var reName=new RegExp("[A-X][a-z]");
				if(reName.test(str)){
					return true;
				}else{
					return false;
				}
			
			}
        function validateSchool(str){
            var reName=new RegExp("[A-X][a-z]");
            if(reName.test(str)){
                return true;
            }else{
                return false;
            }

        }